package com.hs.jhzd.entity;

import javax.persistence.*;
import java.util.Objects;

/**
 * @author guoxc
 * @date 2019/03/01
 **/
@Entity
@Table(name = "jh_xlzxst")
public class JhXlzxstEntity {
    private int xh;
    private String tm;
    private String lx;

    @Id
    @Column(name = "XH")
    public int getXh() {
        return xh;
    }

    public void setXh(int xh) {
        this.xh = xh;
    }

    @Basic
    @Column(name = "TM")
    public String getTm() {
        return tm;
    }

    public void setTm(String tm) {
        this.tm = tm;
    }

    @Basic
    @Column(name = "LX")
    public String getLx() {
        return lx;
    }

    public void setLx(String lx) {
        this.lx = lx;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JhXlzxstEntity that = (JhXlzxstEntity) o;
        return xh == that.xh &&
                Objects.equals(tm, that.tm) &&
                Objects.equals(lx, that.lx);
    }

    @Override
    public int hashCode() {
        return Objects.hash(xh, tm, lx);
    }
}
